[TOOLS] fix sizeof() usage in xc_core
authorTim Deegan <Tim.Deegan@xensource.com>
Mon, 26 Feb 2007 14:47:54 +0000 (14:47 +0000)
committerTim Deegan <Tim.Deegan@xensource.com>
Mon, 26 Feb 2007 14:47:54 +0000 (14:47 +0000)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/libxc/xc_core.c

index 5a23667667b8f665138e9919017bc30aa81a1f7c..7f6f0ee67a2da29cffdb4ea7e7c04b9ce13747cd 100644 (file)
@@ -85,7 +85,7 @@ xc_core_strtab_init(void)
 {
     struct xc_core_strtab *strtab;
     char *strings;
-    strtab = malloc(sizeof(strtab));
+    strtab = malloc(sizeof(*strtab));
     if ( strtab == NULL )
         return NULL;